home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 2,801 to 2,900 / aol-file-protocol-4400-2801-to-2900.zip / AOLDLs / C++ Files Library / 3D & Offscreen for MacApp 3 / 3D & Offscreen Sample.sea / 3D & Offscreen Sample / TSquareWindow.cp < prev    next >
Text File  |  1993-04-23  |  2KB  |  61 lines

  1. /*************************************************************************
  2.  
  3.         File: TSquareWindow.h
  4.  
  5.         C O P Y R I G H T    N O T I C E
  6.  
  7.          Copyright ⌐ 1989, 1990, 1991, 1992 Siemens Gammasonics, Inc.
  8.         All Rights Reserved.
  9.         No portions of this source code or the resulting compiled
  10.         program may be used without express written consent and liscensing
  11.         by Siemens Gammasonics, Inc.
  12.  
  13.  
  14.         D E S C R I P T I O N
  15.  
  16.  
  17.         Classes Defined Here:
  18.  
  19.              Ñ
  20.  
  21.  
  22.      Change History
  23.  
  24.         Rev 1    Fri, Apr 23, 1993 @ 1:40 PM        Hanig
  25.             Creation
  26.  
  27.  *************************************************************************/
  28. /*************************************************************************/
  29. /*                            Include Files                                 */
  30. /*************************************************************************/
  31. #ifndef        __TSquareWindow__
  32. #include    "TSquareWindow.h"
  33. #endif
  34.  
  35. /*************************************************************************/
  36. /*                                Constants                                     */
  37. /*************************************************************************/
  38.  
  39. /*************************************************************************/
  40. TSquareWindow::TSquareWindow( void )
  41. {
  42.  
  43. }
  44.  
  45. /*************************************************************************/
  46. #pragma segment MAViewNonRes
  47. pascal void TSquareWindow::Resize(const VPoint& newSize, Boolean invalidate)
  48. {
  49.     VPoint squareSize(newSize);
  50.     if ( squareSize.v > squareSize.h )
  51.         squareSize.v = squareSize.h;
  52.     else
  53.         squareSize.h = squareSize.v;
  54.         
  55.     inherited::Resize (squareSize, invalidate);
  56. }
  57.  
  58.  
  59. /*************************************************************************/
  60. /*************************************************************************/
  61.